#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main()
{
    int a = 0;
    int i = 0;
    int j = 0;
    while (~scanf("%d", &a))
    {
        if (a > 0)
        {
            i += 1;
        }
        else if (a < 0)
        {
            j += 1;
        }
    }
    printf("positive:%d\n", i);
    printf("negative:%d\n", j);
    return 0;
}